package com.riku.security.mapper;

import com.riku.security.model.SeMenu;
import com.riku.security.model.SeSecurityQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SeMenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SeMenu record);

    int insertSelective(SeMenu record);

    SeMenu selectByPrimaryKey(Long id);

    List<SeMenu> selectMenuByName(SeMenu record);

    List<SeMenu> selectApiByName(SeMenu record);

    List<SeMenu> selectApiByServiceCode(String serviceCode);

    List<SeMenu> selectMenuAndApiByServiceCode(SeSecurityQuery query);

    int updateByPrimaryKeySelective(SeMenu record);

    int updateByPrimaryKey(SeMenu record);
}